package com.glory.brepda.adapter;

import android.content.Context;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentManager;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.base.MyApp;
import com.glory.brepda.entity.GoldenSampleTestDataEntity;
import com.glory.brepda.entity.ToolInfoByLotEntity;
import com.pda.platform.ui.ui_pdaplatform.dialog.FreeUI_GeneralFragmentDialog;
import com.pda.platform.ui.ui_pdaplatform.dialog.FreeUI_GeneralPop;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_DialogUtils;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_PopUtils;

import java.util.ArrayList;
import java.util.List;

public class ToolInfoByLotAdapter extends BaseQuickAdapter<ToolInfoByLotEntity.TOOLBOMLINELISTEntity, BaseViewHolder> {

    Context context;

    public ToolInfoByLotAdapter(@Nullable List<ToolInfoByLotEntity.TOOLBOMLINELISTEntity> data, Context context) {
        super(R.layout.item_lot_toolinfo, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, ToolInfoByLotEntity.TOOLBOMLINELISTEntity item) {
        helper.setText(R.id.tvToolType,item.getMATERIALTYPE());
        helper.setText(R.id.tvToolDesc,item.getNAME());

    }
}
